 <?php 
 $secret = "35onoi2=-7#%g03kl";
$email = urlencode($_POST['email']);
$hash = MD5($_POST['email'].$secret);
$link = "http://www.ipetty.co.za/app/verify.php?email=$email&hash=$hash";
 $to = $_POST['email'];
 $headers = "From: iPetty <noreply@ipetty.co.za>"; 
 $subject = "Verify iPetty account"; 
  
 $body = "Hi there,\n\nWelcome to the iPetty family.\n\nYour newCompanyID is: ".$fcomid."\n\nPlease activate your account here: ".$link."\n\nBe Blessed\n\niPetty Team"; 
 
 $send = mail($to, $subject, $body, $headers); 
 if($send) 
 {$yayMessage = "Your activation link has been sent to your email address";} 
 else 
 {$errorMessage = "An error has occured during the email process"; } 

 ?> 